package com.ruoyi.wechat.api;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.wechat.domain.WxReportsVO;
import com.ruoyi.wechat.service.IReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wechat/reports")
public class WxReportController extends BaseController {

    @Autowired
    private IReportService reportService;
    @GetMapping("/list")
    public TableDataInfo list(WxReportsVO reportsVO)
    {
        List<WxReportsVO> list = reportService.selectCampOrderTop(reportsVO);
        return getDataTable(list);
    }


}
